﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace coreEntityFramework.Model
{
    /// <summary>
    /// 登陆dto
    /// </summary>
    public class LoginDto
    {
        [StringLength(16, ErrorMessage = "最大长度16")]
        public string UserName { get; set; }

        [StringLength(30)]
        public string Password { get; set; }


        public string Role { get; set; }
    }
}
